home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS15.ADF / Texts / ansi.txt next >
Text File  |  1988-04-20  |  3KB  |  50 lines

  1.  
  2.           ANSI codes that COM: responds to.
  3.  
  4.   [ ]  -  contains optional parts of the command.
  5.  
  6.   'n' and 'm'  -  always a decimal number, having one or more ASCII
  7.                       digits to express its value.
  8.   
  9.   Where there is '[n]' and 'n' is not used, it usually defaults to '1'.
  10.  
  11. Backspace                                          08
  12. Line Feed   (down one line)                        0A
  13. Up (up one line)                                   0B
  14. Form Feed  (clear screen)                          0C
  15. Carriage Return (move to first column)             0D
  16. Shift in (turn off 'Shift out')                    0E
  17. Shift out (set MSB of each char before displaying) 0F                 
  18. <CSI> (Control sequence introducer)                1B 5B or 9B
  19. Reset                                              1B 63
  20. Insert n characters                                <CSI> [n] 40
  21. Cursor up n lines                                  <CSI> [n] 41
  22. Cursor down n lines                                <CSI> [n] 42
  23. Cursor forward n lines                             <CSI> [n] 43
  24. Cursor backward n lines                            <CSI> [n] 44
  25. Cursor down n lines and to column 1                <CSI> [n] 45
  26. Cursor up n lines and to column 1                  <CSI> [n] 46
  27. Cursor to row n column m                           <CSI> [n] [3B m] 48
  28. Erase to end of display                            <CSI> 4A
  29. Erase to end of line                               <CSI> 4B
  30. Insert line above current line                     <CSI> 4C
  31. Delete current line                                <CSI> 4D
  32. Delete n chars from under cursor forward           <CSI> [n] 50
  33. Scroll display up n lines                          <CSI> [n] 53
  34. Scroll display down n lines                        <CSI> [n] 54
  35. Set mode (line feed -> line feed + carrage return) <CSI> 32 30 68
  36. Reset mode (line feed -> line feed)                <CSI> 32 30 6C
  37. Select graphic rendition                           <CSI> s 3B 33 f 3B 34 b 6D
  38.    Where:  's' (style)   =  30  : plain text
  39.                             31  : Bold-face
  40.                             33  : Italic
  41.                             34  : Underscore
  42.                             37  : Inverse-video
  43.  
  44.    'f' (text color) and 'b' (background color)   =  
  45.               30  : System color 0      34  : System color 4            
  46.               31  : System color 1      35  : System color 5  
  47.               32  : System color 2      36  : system color 6
  48.               33  : System color 3      37  : system color 7
  49.                                           
  50.